
import { ref, watchEffect, reactive, computed } from 'vue'
import { 查插件api } from '@/amtf/api/其他api';
import *  as util from '@/amtf/utils'
import { ElMessage, ElMessageBox } from 'element-plus'

export default function () {
  // const 插件 = reactive({})

  async function 查插件() {
    const res = await 查插件api()
    console.log(`查插件 res 👉`, res)

    if (res.code == 0) {
      window.插件 = res.data
    } else {
      console.log(`查插件 res 👉`, res)
      ElMessage({
        type: 'error',
        message: res
      })
    }
  }

  查插件()

  // return { 插件 }
}